package com.atguigu.edu2021.mock.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 做卷记录 做卷记录
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
@Data
public class TestExam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目内容
     */
    private Long paperId;

    /**
     * 课程id
     */
    private Long userId;

    /**
     * 分数
     */
    private BigDecimal score;

    /**
     * 所用时长
     */
    private Integer durationSec;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 提交时间
     */
    private Date submitTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    private String deleted;


    @TableField(exist =  false)
    private List<TestExamQuestion> testExamQuestionList;

    @Override
    public String toString() {
        return "TestExam{" +
        "id=" + id +
        ", paperId=" + paperId +
        ", userId=" + userId +
        ", score=" + score +
        ", durationSec=" + durationSec +
        ", createTime=" + createTime +
        ", submitTime=" + submitTime +
        ", updateTime=" + updateTime +
        ", deleted=" + deleted +
        "}";
    }
}
